<?php
namespace app\api\model;
use think\Model;

class Refund extends Model
{
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = '';

    public function getCreatetimeAttr($value)
    {
        return date('Y-m-d H:i:s',$value);
    }
}